<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('order_samples', function (Blueprint $table) {
            $table->string('door_address')->default('')->nullable();
            $table->string('door_phone')->default('')->nullable();
            $table->integer('check_time_id')->default('0')->nullable();
            $table->string('check_date')->default('')->nullable();
            $table->integer('check_type')->default('0')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('order_samples', function (Blueprint $table) {
            $table->dropColumn('door_address');
            $table->dropColumn('door_phone');
            $table->dropColumn('check_time_id');
            $table->dropColumn('check_date');
            $table->dropColumn('check_type');
        });
    }
};
